<template>
  <div>
    <br />
    <div>{{ home }}</div>
    <button @click="home += 1">Home加1</button>
    <br />
    <home-son></home-son>
    <br />
  </div>
</template>

<script>
import HomeSon from "./HomeSon.vue";
export default {
  name: "Home",
  data() {
    return {
      home: "Home",
    };
  },
  components: {
    HomeSon,
  },
  beforeCreate() {
    console.log("beforeCreate", "home");
  },
  created() {
    console.log("created", "home");
  },
  beforeMount() {
    console.log("beforeMount", "home");
  },
  mounted() {
    console.log("mounted", "home");
  },
  beforeUpdate() {
    console.log("beforeUpdate", "home");
  },
  updated() {
    console.log("updated", "home");
  },
  beforeDestroy() {
    console.log("beforeDestroy", "home");
  },
  destroyed() {
    console.log("destroyed", "home");
  },
};
</script>

<style lang="scss" scoped></style>
